﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.IO;
using System.Threading;
using Fast.Presentation.WinForms;

namespace Fast.Odonto.Presentation
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            FrmSplashScreen splash = new FrmSplashScreen();
            splash.Show();

            if (!Directory.Exists(@"c:\LogSistema"))
                Directory.CreateDirectory(@"c:\LogSistema");

            if (!File.Exists(Utilidades.LogFile()))
                File.Create(Utilidades.LogFile());

            Application.DoEvents();
            Thread.Sleep(3000);

            splash.Close();

            Application.Run(new Form1());
        }
    }
}
